Gambas Documentation
Documents

Integer[].ExistSorted (gb)

Function ExistSorted ( Value As Integer ) As Boolean

Since 3.16

Return if the specified value exists in the array.

This method only works if the array is sorted.

But it is faster than the Exist method as it uses a binary search algorithm.